package com.kanshu.ksgb.fastread.doudou.common.business.errorlog.utils;


import com.kanshu.ksgb.fastread.doudou.common.net.bean.BaseResult;
import com.kanshu.ksgb.fastread.doudou.common.business.errorlog.bean.ErrorLogBean;

import java.util.Map;

import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;

/**
 * Title: 错误日志ErrorLogService类
 * Description: ErrorLogService.java
 * Copyright: Copyright(c)2018
 * Company: 成都古羌科技有限公司
 * CreateTime: 2018/3/14 15:53
 *
 * @author EvanHe
 * @version 1.3
 */
public interface ErrorLogService {

    // 错误日志上传
    @FormUrlEncoded
    @POST("yd/exceptionlog/report")
    Observable<BaseResult<ErrorLogBean>> errorLogRequest(@FieldMap Map<String, String> map);
    // 错误日志开关
    @GET("yd/exceptionlog/logswitch")
    Observable<ResponseBody> errorLogSwitch();

}
